package com.rykj.energy.database.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("basic_device")
@ApiModel("设备信息")
public class BasicDevice extends BasePojo{

    private static final long serialVersionUID = -1585126141567278502L;

    @ApiModelProperty(value = "组织ID")
    @TableId(value = "id")
    private Integer id;

    @ApiModelProperty(value = "设备名称" )
    @TableField(value = "devAlias")
    private String devAlias;

    @ApiModelProperty(value = "设备ip" )
    @TableField(value = "devIp")
    private String devIp;

    @ApiModelProperty(value = "设备登录用户名" )
    @TableField(value = "devUser")
    private String devUser;

    @ApiModelProperty(value = "密码" )
    @TableField(value = "devPwd")
    private String devPwd;

    @ApiModelProperty(value = "设备品牌" )
    @TableField(value = "devBrand")
    private String devBrand;

    @ApiModelProperty(value = "设备型号" )
    @TableField(value = "devModel")
    private String devModel;

    @ApiModelProperty(value = "设备端口号" )
    @TableField(value = "devPort")
    private Integer devPort;

    @ApiModelProperty(value = "通道数" )
    @TableField(value = "devChannelNum")
    private Integer devChannelNum;

    @ApiModelProperty(value = "设备序列号" )
    @TableField(value = "devNo")
    private String devNo;

    @ApiModelProperty(value = "设备类型，nvr" )
    @TableField(value = "devType")
    private String devType;

    @ApiModelProperty(value = "区域id" )
    @TableField(value = "orgId")
    private Integer orgId;

    @ApiModelProperty(value = "在线状态:在线online,离线offline" )
    @TableField(value = "lineStatus")
    private String lineStatus;

    @ApiModelProperty(value = "设备状态：正常normal,删除deleted" )
    @TableField(value = "devStatus")
    private String devStatus;

    @ApiModelProperty(value = "创建时间" )
    @TableField(value = "createTime")
    private Date createTime;

}
